home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / vbcc-68k-src / machines / amiga68k / libsrc / string / strncpy.c < prev    next >
C/C++ Source or Header  |  1999-01-01  |  155b  |  11 lines

  1. #include <string.h>
  2.  
  3. char *strncpy(char *s1,const char *s2,size_t n)
  4. {
  5.     char *d=s1;
  6.     while (n--)
  7.       if (*s1++=*s2)
  8.         s2++;
  9.     return(d);
  10. }
  11.